<?php

include_once "customers.class.php";
include_once "newsletter.class.php";
include_once "mail_groups.class.php";

// ----------------------------------------------------------------------------
// --- [ Export code ] --------------------------------------------------------
// ----------------------------------------------------------------------------

function customers_Export()
{
	$customer =& new CustomersList();
	
	$customeredit =& new CustomerEdit($customer);
	$customer->AddSubPlugin($customeredit);
	
	return $customer;
}

function customers_AdminExport()
{
	$customer =& new CustomersList();
	
//	$customeredit =& new CustomerEdit($customer);
//	$customer->AddSubPlugin($customeredit);
	$newsletter =& new NewsLetter($customer);
	$customer->AddSubPlugin($newsletter);
    $mail_groups =& new Cmail_groups($customer);
    $customer->AddSubPlugin($mail_groups);
	
	return $customer;
}

?>